package com.cool.person.service;

import com.cool.person.dao.UserMapper;
import com.cool.person.entity.Columns;
import com.cool.person.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author qh
 * @Date 2019-02-25
 * @description
 */
@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    public List<Columns> listColumns() {
        return userMapper.listColumns();
    }

//    public List<User> listUser(Map<String, Object> map) {
//        return userMapper.listUser(map);
//    }

    public List<Map<String, Object>> listUser(String str) {
        return userMapper.listUser(str);
    }
}
